@extends('layouts.header')
@inject('sender','App\Http\Controllers\WroteitController')
@section('content')
    <h2 style="text-align: left;">Inbox</h2>
    <h5 style="text-align: center;">From: {{$sender::getSender($message)->name}} at {{$message->created_at}}</h5>
    <h3 style="text-align: center;">{{$message->title}} => {{$message->body}}</h3>        
    <form action="{{ route('new_message') }}" method="GET">
        <button type="submit">Reply</button>
    </form>
@endsection()